package com.cy.server.service;

import com.cy.server.dto.EmployeeDto;
import com.cy.server.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.server.pojo.RespBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiShaoZhuo
 * @since 2021-04-26
 */
public interface IEmployeeService extends IService<Employee> {


    /**
    * @Description: 员工信息分页
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/5/6
    */
    PageInfo<Employee> selectEmployee(EmployeeDto employeeDto);

    /**
    * @Description: 获取最大工号
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/5/6
    */
    RespBean selectMaxWorkId();

    /**
    * @Description: 添加员工
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/5/7
    */
    RespBean addEmployee(Employee employee);

    /**
    * @Description: 查询员工
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/5/7
    */
    List<Employee> getEmployee(Integer id);

    /**
    * @Description: 查询员工账套
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/5/10
    */
    PageInfo<Employee> selectEmployeeWithSalary(EmployeeDto employeeDto);
}
